// components/commonNav/commonNav.js
const App = getApp();

Component({
    options: {
      addGlobalClass: true,
    },
    externalClasses: ['my-class'],
    properties: {
      pageName: String,
      bgColor: String
    },
  /**
   * 组件的初始数据
   */
  data: {
   
  },
  lifetimes: {
    attached: function () {
      this.setData({
        navHeight: App.globalData.navHeight,
        navTop: App.globalData.navTop,
        ztlHeight: App.globalData.statusBarHeight,
      })
     }
  },
  
})